package com.pig4cloud.pig.common.core.constant.enums;

public enum ErrorCodeEnum {

	//异常
	SUCCESS(200, "操作成功"),

	ERROR(2006, "业务异常"),
	ERROR_LOGIN(401, "认证异常"),
	ERROR_QUERY(400, "参数异常");

	private final Integer code;
	private final String msg;

	ErrorCodeEnum(final int code, final String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
}
